// src/app/store/usernameSlice.js
import { createSlice } from '@reduxjs/toolkit';

export const usernameSlice = createSlice({
    name: 'username',
    initialState: '',
    reducers: {
        setUsername: (state, action) => action.payload,
    },
});

export const { setUsername } = usernameSlice.actions;

export default usernameSlice.reducer;